home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam33 / w32.dm < prev   
Text File  |  1995-05-03  |  979b  |  61 lines

  1.  
  2. #  Makefile designed for use by the DMAKE.EXE utility and
  3. #  WATCOM C/C++ 32 bit
  4.  
  5.  
  6. TARGET = main
  7.  
  8.  
  9. C_SRC = main.c
  10.  
  11.  
  12.  
  13. BINDIR = ..\..\bin
  14. LIBDIR = ..\..\lib
  15. INCDIR = ..\..\include
  16.  
  17.  
  18.  
  19.  
  20. .IF    $(DEBUG)
  21. CFLAGS = -I=$(INCDIR) -4s -zp2 -zq -l=dos4g -d2 -j
  22. LFLAGS = -4s -zp2 -zq -l=dos4g /"option caseexact" -d2
  23. .ELSE
  24. CFLAGS = -I=$(INCDIR) -4s -zp2 -zq -l=dos4g -oilrt -j
  25. LFLAGS = -4s -zp2 -zq -l=dos4g /"option caseexact" 
  26. .END
  27.  
  28.  
  29. OBJS = {$(C_SRC:b)}.obj
  30.  
  31.  
  32. CC = wcl386
  33.  
  34. LIBS = $(LIBDIR)\dynldw.lib
  35.  
  36.  
  37. # Since DMAKE diversions treat the backslach like an escape sequence it is
  38. # necessary to double up the backslashes located in paths
  39. LIBS2     := $(LIBS:s/\/\\/)
  40. OBJS2     := $(OBJS:s/\/\\/)
  41.  
  42.  
  43.  
  44. $(TARGET).exe : $(OBJS) $(LIBS)
  45.     wlink @$(mktmp,tmp.lnk \
  46.         system dos4g\n\
  47.         file $(OBJS2:t"\nfile ")\n\
  48.         option caseexact,quiet\n\
  49.         library $(LIBS2)\n\
  50.         name $@\n)
  51.  
  52.  
  53.  
  54. clean:
  55.     rm -zq *.obj
  56.     rm -zq *.exe
  57.     rm -zq *.o
  58.     rm -zq *.err
  59.  
  60.  
  61.